package com.education.config;

import com.education.auth.utlis.RsaUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.context.properties.ConfigurationProperties;

import javax.annotation.PostConstruct;
import java.security.PublicKey;

/**
 * @author: ly
 * @create: 2018-05-26 21:53
 **/
@ConfigurationProperties(prefix = "hk")
public class HkProperties {

    private String ip;

    private String username;

    private String password;

    private String createTokenUrl;

    private String deleteTokenUrl; //获取 accessToken 接口

    private String organizationUrl; //查询资源组织列表接口

    private String videoCreateUrl; //视频录制

    private String serchVideoUrl; //视频检索

    private String hlsUrl; //视频预览 HLS 地址

    private String rtspUrl; //视频预览 rtsp 地址

    private static final Logger logger = LoggerFactory.getLogger(HkProperties.class);

    public String getRtspUrl() {
        return rtspUrl;
    }

    public void setRtspUrl(String rtspUrl) {
        this.rtspUrl = rtspUrl;
    }

    public String getHlsUrl() {
        return hlsUrl;
    }

    public void setHlsUrl(String hlsUrl) {
        this.hlsUrl = hlsUrl;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getCreateTokenUrl() {
        return createTokenUrl;
    }

    public void setCreateTokenUrl(String createTokenUrl) {
        this.createTokenUrl = createTokenUrl;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getDeleteTokenUrl() {
        return deleteTokenUrl;
    }

    public void setDeleteTokenUrl(String deleteTokenUrl) {
        this.deleteTokenUrl = deleteTokenUrl;
    }

    public String getOrganizationUrl() {
        return organizationUrl;
    }

    public void setOrganizationUrl(String organizationUrl) {
        this.organizationUrl = organizationUrl;
    }

    public String getVideoCreateUrl() {
        return videoCreateUrl;
    }

    public void setVideoCreateUrl(String videoCreateUrl) {
        this.videoCreateUrl = videoCreateUrl;
    }

    public String getSerchVideoUrl() {
        return serchVideoUrl;
    }

    public void setSerchVideoUrl(String serchVideoUrl) {
        this.serchVideoUrl = serchVideoUrl;
    }
}
